// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class GenMaintPeriod : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<GenMaintPeriod, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public string GensetNum { get; set; }
        public int? MaintenancePeriod { get; set; }
        public double? MaintenanceDuration { get; set; }
        public DateTime? LastMaintDate { get; set; }
        public decimal? RunPeriodSubTotal { get; set; }
        public string PrjCode { get; set; }
        public int? MaintHint_Enable { get; set; }
        public DateTime? LastMaintHintDate { get; set; }
    
        public void Configure(EntityTypeBuilder<GenMaintPeriod> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.GensetNum).HasMaxLength(50);

                entityBuilder.Property(e => e.LastMaintDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.LastMaintHintDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(100);

                entityBuilder.Property(e => e.RunPeriodSubTotal).HasColumnType("decimal(18, 4)");
        }

    }
}

